// let u = new URL('https://www.bilibili.com/video/BV1ca4y1n7u3?p=15&spm_id_from=pageDriver')
const log4js = require('log4js')
const url = require('url')
// const logger = log4js.getLogger()
// logger.level = 'debug'
log4js.configure({
    appenders: { cheese: { type: "file", filename: "cheese.log" } },
    categories: { default: { appenders: ["cheese"], level: "error" } }
  });

const logger = log4js.getLogger('cheese')
logger.level = 'debug'

const urlString = 'https://lurongtao.gitee.io/felixbooks-gp19-node.js/basics/01-Node.js%E5%9F%BA%E7%A1%80.html'
const urlObj = {}
 logger.debug(url.parse(urlString))
//  logger.debug